package com.dap.commons;

public class Constants {
    public static String TRACE_ID = "TraceId";
    public static String RPC_ID = "RpcId";


    public static class ResponseCode {
        public static final String SYS_SUCCESS = "000000";
        public static final String SYS_ERROR = "999999";
        public static final String GENERAL_EXCEPTION = "000001";

        public static final String RPC_TIMEOUT = "PRPCCN01";

        public final static String EXCEL_INVALID_EXTENSION = "EXCEL_INVALID_EXTENSION"; // excel 非法后缀
        public final static String EXCEL_INVALID_CONTENT = "EXCEL_INVALID_CONTENT"; // excel 非法内容
        public final static String EXCEL_PICTURE_INVALID_POS = "EXCEL_PICTURE_INVALID_POS"; // excel 中的图片错误位置
        public final static String EXCEL_PICTURE_TOO_LARGE = "EXCEL_PICTURE_TOO_LARGE"; // excel 中的图片过大
        public final static String EXCEL_NO_DATA = "EXCEL_NO_DATA";

        public final static String FILE_UPLOAD_FAILURE = "FILE_001";//文件上传失败
    }


    // excel 相关
    public final static String EXCEL_EXTENSION_XLS = ".xls";
    public final static String EXCEL_EXTENSION_XLSX = ".xlsx";
}
